package com.kpmg.datalake.schedule.enums;

/**
 * @author Alex.zhao [alex.zhao@kpmg.com]
 * @since Created on azhao6 on 2018-08-09 22:32:06
 */
public enum ScheduleExecStatusEnum {
    /**
     * RUNNING("1", "运行中")
     */
    RUNNING("RUNNING", "运行中"),
    /**
     * DONE("2","完成"),
     */
    DONE("DONE", "完成"),
    /**
     * FAILED("3","失败")
     */
    FAILED("FAILED", "失败"),
    /**
     * PAUSE("PAUSE","暂停")
     */
    PAUSE("PAUSE", "暂停"),
    /**
     * STOP("0", "停止")
     */
    STOP("STOP", "停止");

    private String code;
    private String display;

    ScheduleExecStatusEnum(String code, String display) {
        this.code = code;
        this.display = display;
    }

    public String getCode() {
        return code;
    }

    public String getDisplay() {
        return display;
    }
}
